package com.itzjc.utils;

import java.math.BigInteger;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * TODO
 *
 * @className: FormatTimeFrom1953Utils
 * @date: 2021-06-22 20:51
 **/
public class FormatTimeFrom1953Utils {
    private final static Long standardTimeValue = 404467200000L;

    public static String fomatTime(BigInteger dataTime) {
        long l1 = dataTime.longValue();
        Date date = new Date(l1 - standardTimeValue);
        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(date);

    }
}
